import type { FormSchema } from '@/components/core/schema-form/';

export const schemas: FormSchema[] = [
  {
    field: 'shortName',
    component: 'Input',
    label: '①',
    rules: [{ required: true, type: 'string', message: '请输入消防机构简称' }],
    componentProps: () => {
      return {
        placeholder: '请输入消防机构简称',
        maxlength: 8,
        showCount: true,
      };
    },
  },
  {
    field: 'charName',
    component: 'Input',
    label: '②',
    rules: [{ required: true, message: '请输入记录表字' }],
    componentProps: () => {
      return {
        placeholder: '请输入记录表字',
        maxlength: 8,
        showCount: true,
      };
    },
  },
  {
    field: 'numberName',
    component: 'Input',
    label: '③',
    rules: [{ required: true, message: '请输入记录表号' }],
    componentProps: () => {
      return {
        placeholder: '请输入记录表号',
        maxlength: 8,
        showCount: true,
      };
    },
  },
];
